//
//  UIBarButtonItem+Item.h
//  WSY微博
//
//  Created by tarena on 16/1/19.
//  Copyright © 2016年 WangSY. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Item)

/**
 *  设置图片，需要设定点击方式
 */
+ (UIBarButtonItem *)barButtonItemWithImage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents title:(NSString *)title;

/**
 *  设置图片，UIControlEventTouchUpInset点击方式
 */
+ (UIBarButtonItem *)barButtonItemWithImage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target action:(SEL)action imageEdgeInsets:(UIEdgeInsets)imageEdgeInsets titleEdgeInsets:(UIEdgeInsets)titleEdgeInsets title:(NSString *)title;
/**
 *  设置背景图片，需要设定点击方式
 */
+ (UIBarButtonItem *)barButtonItemWithBackgroundImage:(UIImage *)image highBackgroundImage:(UIImage *)highImage target:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents title:(NSString *)title;

/**
 *  设置背景图片，UIControlEventTouchUpInset点击方式
 */
+ (UIBarButtonItem *)barButtonItemWithBackgroundImage:(UIImage *)image highBackgroundImage:(UIImage *)highImage target:(id)target action:(SEL)action title:(NSString *)title;

+ (UIBarButtonItem *)backBarButtonItemWithImage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents title:(NSString *)title;

+ (UIBarButtonItem *)LocationCityBarButtonItemWithImage:(UIImage *)image highImage:(UIImage *)highImage target:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents title:(NSString *)title;
@end
